Save immediate operand into mcip structure.
authoryjiang5@vtsmp-build32.sh.intel.com <yjiang5@vtsmp-build32.sh.intel.com>
Wed, 28 Sep 2005 13:06:41 +0000 (14:06 +0100)
committeryjiang5@vtsmp-build32.sh.intel.com <yjiang5@vtsmp-build32.sh.intel.com>
Wed, 28 Sep 2005 13:06:41 +0000 (14:06 +0100)
Some opcode like and/or need the immediate info when return from DM, we should save it before sending io request.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
xen/arch/x86/vmx_platform.c

index 8052b1c7cd42e4f99ab12fd8a3312f308890d184..3e805cac8c3d45c7358bd957697f744f8897ca3b 100644 (file)
@@ -667,6 +667,7 @@ static void mmio_operands(int type, unsigned long gpa, struct instruction *inst,
     mpcip->instr = inst->instr;
     mpcip->operand[0] = inst->operand[0]; /* source */
     mpcip->operand[1] = inst->operand[1]; /* destination */
+    mpcip->immediate = inst->immediate;
 
     if (inst->operand[0] & REGISTER) { /* dest is memory */
         index = operand_index(inst->operand[0]);